import java.util.Scanner;

public class Test {

    public static int max2(int x, int y) {

        if (x >= y) {
            return x;
        } else {
            return y;
        }
    }

    public static int max3(int x, int y, int z) {

        int c = max2(x, y);
        if (c >= z) {
            return c;
        } else {
            return z;
        }
    }

    public static void main1(String[] args) {

        Scanner scanner = new Scanner(System.in);
        System.out.print("n是：");
        int n = scanner.nextInt();
        System.out.println();

        System.out.print("m是：");
        int m = scanner.nextInt();
        System.out.println();

        System.out.print("z是：");
        int z = scanner.nextInt();
        System.out.println();

        int ret = max3(m, n, z);
        System.out.println("这三个数中最大的数是:" + ret);
    }






    public static void main2(String[] args) {

        int a = 0, b = 0;
        double c = 0, d = 0, e = 0;
        Scanner scanner = new Scanner(System.in);

        System.out.printf("a:");
        a = scanner.nextInt();
        System.out.println();

        System.out.printf("b:");
        b = scanner.nextInt();
        System.out.println();

        System.out.printf("c:");
        c = scanner.nextDouble();
        System.out.println();

        System.out.printf("d:");
        d = scanner.nextDouble();
        System.out.println();

        System.out.printf("e:");
        e = scanner.nextDouble();
        System.out.println();

        int ret = sum(a, b);
        System.out.println(ret);

        double z = sum(c, d, e);
        System.out.println(z);
    }

    public static int sum(int x, int y) {
        return x + y;
    }

    public static double sum(double x, double y, double z) {
        return x + y + z;
    }






    public static void main(String[] args) {

        int a = 0, b = 0;
        double c = 0, d = 0, e = 0;
        Scanner scanner = new Scanner(System.in);

        System.out.printf("a:");
        a = scanner.nextInt();
        System.out.println();

        System.out.printf("b:");
        b = scanner.nextInt();
        System.out.println();

        System.out.printf("c:");
        c = scanner.nextDouble();
        System.out.println();

        System.out.printf("d:");
        d = scanner.nextDouble();
        System.out.println();

        System.out.printf("e:");
        e = scanner.nextDouble();
        System.out.println();

        int ret = max(a, b);
        System.out.println(ret);

        double z = max(c, d, e);
        System.out.println(z);
    }


    public static int max(int x, int y) {
        if (x >= y) {
            return x;
        }else {
            return y;
        }
    }


    public static double max(double x, double y, double z) {
        if(x == y && y == z){
            return x;
        } else if(x > y && x > z){
            return x;
        }else if (y > x && y > z){
            return y;
        }else{
            return z;
        }
    }

}

